{block name=body} 

<div class="hide">
	{foreach $list as $f}
		{foreach $f.locations as $d}
	     <div class="col-sm-6 location-summary loc" latitude="{$d.location_latitude}" longitude="{$d.location_longitude}" title="{$f.record.franchisee_name} | {$d.location_name}" pin="{$d.location_pin}">
				<div>
					<span class="location-suburb">{$d.location_name|upper}</span><br>
					  {$d.location_street}<br>
					  {$d.location_suburb}<br>
					{$d.location_state} {$d.location_postcode}<br />  
				</div>
			</div>
		{/foreach}
	{/foreach}
</div>

<div class="">
	<h2 class="title">{$zone}</h2>
	<div id="mapbox" class="text-center">
    <div id="map-canvas">Loading Map...</div>
	</div>
	<div id="prodcontainer">
		{foreach $list as $f}
			{foreach $f.users as $u}
				<div class="item partner">
					<img src="{if $u.admin_image}{$u.admin_image}{else}/admin/images/no-image-available.jpg{/if}" class="img-responsive" alt="franchisee image">
                    <div class="testinfo">
                        <div class="testquote">{$u.admin_name} {$u.admin_surname}</div>
                        <h4 class="title">{$f.record.franchisee_name}</h4>
                        <div>{$f.record.franchisee_description}</div>
                        <div><a href="mailto:{$u.admin_email}">{$u.admin_email}</a></div>
                        {if $u.admin_telephone}<div>P <a href="tel:{$u.admin_telephone}">{$u.admin_telephone}</a></div>{/if}
                        {if $u.admin_description}<div>{$u.admin_description}</div>{/if}
                    </div>
				</div>
			{/foreach}
	  {/foreach}
	</div>
</div>


{/block}

{block name=tail}
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script src="/includes/js/location.js"></script>  
{/block}